<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="utf-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<meta name="viewport" content="width=device-width, initial-scale=1.0" />
	<meta name="description" content="" />
	<meta name="author" content="" />	
	<title>{$tit}</title>
	<link rel="stylesheet" href="{$adstyle}/css/fonts/linecons/css/linecons.css">
	<link rel="stylesheet" href="{$adstyle}/css/fonts/fontawesome/css/font-awesome.min.css">
	<link rel="stylesheet" href="{$adstyle}/css/bootstrap.css">
	<link rel="stylesheet" href="{$adstyle}/css/xenon-core.css">
	<link rel="stylesheet" href="{$adstyle}/css/xenon-forms.css">
	<link rel="stylesheet" href="{$adstyle}/css/xenon-components.css">
	<link rel="stylesheet" href="{$adstyle}/css/xenon-skins.css">
	<link rel="stylesheet" href="{$adstyle}/css/custom.css">
	<link rel="stylesheet" href="{$adstyle}/js/datatables/dataTables.bootstrap.css">
	<script src="{$adstyle}/js/jquery-1.11.1.min.js"></script>	
</head>
<body  class="modal-content" >
	<div>
		<div class="modal-header" style="border:0px;">
			<button type="button" class="close" data-dismiss="modal" aria-hidden="true" onclick="closeWindow()">&times;</button>
			<h4 class="modal-title">修改的名称</h4>			
			
		</div>
		<div class="modal-body">
			<input type="text" class="form-control" id="field-1" value="{$filename}" />	
			<span style="color:#666">*以字母或下划线开头,后跟数字,字母，或下划线</span>		
		</div>
		<div class="modal-footer" style="border:0px;">
			<button type="button"  style="float:right;margin-right:10px;"class="btn btn-white" data-dismiss="modal" onclick="closeWindow()">关闭</button>
			<button type="button" style="float:right;;margin-right:10px;" class="btn btn-info" onclick="bc()">保存</button>
			<input type="hidden" value="{prt(base64_encode($paths))}" id="pas"/>
		</div>
	</div>
<script>
function closeWindow(){
	parent.closealert();
}
function bc(){
	var pa = document.getElementById('pas').value;
	var name = document.getElementById('field-1').value;
	 $.post('{$_url}/admin/?act=tempgl&met=editname{$gnpd}',{pa:pa,name:name},function(data){ 	
		if(data == 'cg'){
			parent.closealert();			
		}else{
			alert(data);
		}
	});
}
</script>
</body>
</html>
